logic for finding stepping number

join shbcf.ru